<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('产品信息修改')" />
    <style type="text/css">
        .layui-input, .layui-textarea{width:calc(100% - 100px);}
        .layui-form-label{width:180px}
        .layui-form-select dl{margin-left:80px;min-width: calc(100% - 100px);}
        .layui-edge{margin-right:28px;}
    </style>
</head>
<body>
<form class="layui-form" id="form-product-edit" style="padding: 16px 84px 16px 25px;">
<input type="hidden" id="guid" name="guid"  th:value="${productInfo?.guid}">
	<div class="layui-form-item">
	  	<label class="layui-form-label">品牌：</label>
	  	<div class="layui-input-block">
  			<select name="gBrand" th:with="type=${@baseinfosimple.getBaseInfoSimpleData('brand')}">
					<option value="">请选择</option>
					<option th:each="dict : ${type}" th:text="${dict.vname}" th:value="${dict.vid}" th:selected="${dict.vid} eq ${productInfo?.gBrand}"></option>
			</select>
   		</div>
	</div>
	<div class="layui-form-item">
	  <label class="layui-form-label">型号：</label>
	  <div class="layui-input-block">
	    <input type="text" name="gID" id="gID" th:value="${productInfo?.gID}" lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input">
	  </div>
	</div>
	<div class="layui-form-item">
	  <label class="layui-form-label">规格：</label>
	  <div class="layui-input-block">
	    <input type="text" name="gModel" id="gModel" th:value="${productInfo?.gModel}" lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input">
	  </div>
	</div>
	<div class="layui-form-item">
	  <label class="layui-form-label">品名：</label>
	  <div class="layui-input-block">
	    <input type="text" name="gName" id="gName" th:value="${productInfo?.gName}" lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input">
	  </div>
	</div>
	<div class="layui-form-item">
	  <label class="layui-form-label">系列：</label>
	  <div class="layui-input-block">
	    <input type="text" name="gSerial" id="gSerial" th:value="${productInfo?.gSerial}" lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input">
	  </div>
	</div>
	<div class="layui-form-item">
	  <label class="layui-form-label">订货号：</label>
	  <div class="layui-input-block">
	    <input type="text" name="gIndex" id="gIndex" th:value="${productInfo?.gIndex}" lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input">
	  </div>
	</div>
	<div class="layui-form-item">
	  <label class="layui-form-label">单位：</label>
	  <div class="layui-input-block">
	  		<select name="gUnit" th:with="type=${@baseinfosimple.getBaseInfoSimpleData('unit')}">
					<option value="">请选择</option>
					<option th:each="dict : ${type}" th:text="${dict.vname}" th:value="${dict.vid}" th:selected="${dict.vid} eq ${productInfo?.gUnit}"></option>
			</select>
	  </div>
	</div>
	<div class="layui-form-item">
	  <label class="layui-form-label">含税面价：</label>
	  <div class="layui-input-block">
	    <input type="text" name="fHsMj" id="fHsMj" th:value="${productInfo?.fHsMj}" lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input">
	  </div>
	</div>
	<div class="layui-form-item">
	  <label class="layui-form-label">不含税面价：</label>
	  <div class="layui-input-block">
	    <input type="text" name="fWsMj" id="fWsMj" th:value="${productInfo?.fWsMj}" lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input">
	  </div>
	</div>
	<div class="layui-form-item">
	  <label class="layui-form-label">建议售价：</label>
	  <div class="layui-input-block">
	    <input type="text" name="fJySj" id="fJySj" th:value="${productInfo?.fJySj}" lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input">
	  </div>
	</div>
	<div class="layui-form-item">
	  <label class="layui-form-label">起订量：</label>
	  <div class="layui-input-block">
	    <input type="text" name="fQdl" id="fQdl" th:value="${productInfo?.fQdl}" lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input">
	  </div>
	</div>
	<div class="layui-form-item">
	  <label class="layui-form-label">预计货期：</label>
	  <div class="layui-input-block">
	    <input type="text" name="fHqTs" id="fHqTs" th:value="${productInfo?.fHqTs}" lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input">
	  </div>
	</div>
	<div class="layui-form-item">
	  <label class="layui-form-label">最低库存数量：</label>
	  <div class="layui-input-block">
	    <input type="text" name="fZdKcSl" id="fZdKcSl" th:value="${productInfo?.fZdKcSl}" lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input">
	  </div>
	</div>
	<div class="layui-form-item">
	  <label class="layui-form-label">最小包装量：</label>
	  <div class="layui-input-block">
	    <input type="text" name="fZxBzSl" id="fZxBzSl" th:value="${productInfo?.fZxBzSl}" lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input">
	  </div>
	</div>
	<div class="layui-form-item">
	  <label class="layui-form-label">重量：</label>
	  <div class="layui-input-block">
	    <input type="text" name="fZl" id="fZl" th:value="${productInfo?.fZl}" lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input">
	  </div>
	</div>
	<div class="layui-form-item">
	  <label class="layui-form-label">重量单位：</label>
	  <div class="layui-input-block">
	    <input type="text" name="vZlDw" id="vZlDw" th:value="${productInfo?.vZlDw}" lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input">
	  </div>
	</div>
	<div class="layui-form-item">
	  <label class="layui-form-label">常规产品：</label>
	  <div class="layui-input-block">
	    <input type="text" name="vCgCp" id="vCgCp" th:value="${productInfo?.vCgCp}" lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input">
	  </div>
	</div>
	<div class="layui-form-item">
	  <label class="layui-form-label">物料编号：</label>
	  <div class="layui-input-block">
	    <input type="text" name="vWlBh" id="vWlBh" th:value="${productInfo?.vWlBh}" lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input">
	  </div>
	</div>
	<div class="layui-form-item">
	  <label class="layui-form-label">产品版本号：</label>
	  <div class="layui-input-block">
	    <input type="text" name="vCpBbh" id="vCpBbh" th:value="${productInfo?.vCpBbh}" lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input">
	  </div>
	</div>
	<div class="layui-form-item">
	  <label class="layui-form-label">产品类别：</label>
	  <div class="layui-input-block">
	    <input type="text" name="vCpLx" id="vCpLx" th:value="${productInfo?.vCpLx}" lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input">
	  </div>
	</div>
	<div class="layui-form-item">
	  <label class="layui-form-label">型号状态：</label>
	  <div class="layui-input-block">
	    <input type="text" name="vXhZt" id="vXhZt" th:value="${productInfo?.vXhZt}" lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input">
	  </div>
	</div>
	<div class="layui-form-item">
	  <label class="layui-form-label">型号类型(T/S)：</label>
	  <div class="layui-input-block">
	    <input type="text" name="vXhLx" id="vXhLx" th:value="${productInfo?.vXhLx}" lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input">
	  </div>
	</div>
	<div class="layui-form-item">
	  <label class="layui-form-label">统一物料编码：</label>
	  <div class="layui-input-block">
	    <input type="text" name="vEanUpc" id="vEanUpc" th:value="${productInfo?.vEanUpc}" lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input">
	  </div>
	</div>
	<div class="layui-form-item">
	  <label class="layui-form-label">PGC代码：</label>
	  <div class="layui-input-block">
	    <input type="text" name="vPgc" id="vPgc" th:value="${productInfo?.vPgc}" lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input">
	  </div>
	</div>
	<div class="layui-form-item">
	  <label class="layui-form-label">折扣代码：</label>
	  <div class="layui-input-block">
	    <input type="text" name="vZkDm" id="vZkDm" th:value="${productInfo?.vZkDm}" lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input">
	  </div>
	</div>
	<div class="layui-form-item">
	  <label class="layui-form-label">特价类型：</label>
	  <div class="layui-input-block">
	    <input type="text" name="vTjLx" id="vTjLx" th:value="${productInfo?.vTjLx}" lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input">
	  </div>
	</div>
	<div class="layui-form-item">
	  <label class="layui-form-label">生命周期：</label>
	  <div class="layui-input-block">
	    <input type="text" name="vSmZq" id="vSmZq" th:value="${productInfo?.vSmZq}" lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input">
	  </div>
	</div>
	<div class="layui-form-item">
	  <label class="layui-form-label">EDI/NON-EDI：</label>
	  <div class="layui-input-block">
	    <input type="text" name="vEdi" id="vEdi" th:value="${productInfo?.vEdi}" lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input">
	  </div>
	</div>
	<div class="layui-form-item">
	  <label class="layui-form-label">产品备注：</label>
	  <div class="layui-input-block">
	    <input type="text" name="vCpBz" id="vCpBz" th:value="${productInfo?.vCpBz}" lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input">
	  </div>
	</div>
</form>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
	/*<![CDATA[*/
	var prefix = ctx + "business/product";
	/*]]>*/
</script>
<script type="text/javascript">
layui.use(['table','form','layer','jquery'], function () {
    var $ = layui.$,layer = layui.layer,form = layui.form,table = layui.table;
});
//提交调用的方法
function submitHandler() {
	$.operate.save(prefix + "/editpost", {'productInfoItems':JSON.stringify([$.common.formToJSON('form-product-edit')])});
}
</script>
</body>
</html>
